package storage

import "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"

type CloudStorageInterface interface {
	CosGreeter
}

type Storage struct {
	credential *common.Credential
}

func NewStorage(credential *common.Credential) CloudStorageInterface {
	return &Storage{
		credential: credential,
	}
}

func (s *Storage) Credential() *common.Credential {
	return s.credential
}

func (s *Storage) COS(region string, bucket string) CosInterface {
	return newCos(s, region, bucket)
}
